package com.dries.portal.module.friends.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.Date;

/**
 * 用户关注表
 * 
 * @author dries
 * @email samphsanie@gmail.com
 * @date 2020-08-17 09:59:44
 */
@Data
@TableName("xx_user_attention")
public class UserAttention implements Serializable {
	private static final long serialVersionUID = 1L;

	/**
	 * 
	 */
	@TableId(type = IdType.AUTO)
	private Integer id;
	/**
	 * 用户ID
	 */
	@NotNull(message = "被关注者ID不能为空")
	private Long userId;
	/**
	 * 被关注者ID
	 */
	@NotNull(message = "被关注者ID不能为空")
	private Long attentionId;
	/**
	 * 关注状态
	 */
	@NotNull(message = "关注状态不能为空")
	private Integer attStatus;
	/**
	 * 关注时间
	 */
	private Date createTime;

}
